<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="javascript/dist/jquery.js"></script>
</head>
<body>
	登陆<input type="text" id="login" value="">
	<form action=""  method="get"></form>
</body>
<script type="text/javascript">
	$(function(){
		$('body').on('click','#login',function(){
			var userCode=$(this).val();
			var form=$('<form>').attr('action','user/login').attr('method','post');
			$('body').append(form);
		});
		jQuery.ajax({
			url:'http://192.168.0.111:9090/chatsocket/user/base64',
			data:'text/xml',
			dataType:'json',
			contentType:'baiduApp/json',
			type:'post',
			success:function(msg){
				console.log(msg);
			}
		});
	});
</script>
</html>